package com.qf.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * 远程调用缓存
 * @author lixu
 */
@FeignClient(value = "SMS-PLATFORM-CACHE",path = "/cache")
public interface CacheFeign {


    /**
     * 根据Key取 hash类型的数据  hmget
     * @param key
     * @return
     */
    @RequestMapping(value = "/hmget/{key}", method = RequestMethod.GET)
    public Map hMGet(@PathVariable("key") String key);

}
